// 该文件专门用于创建整个应用的路由器
import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);
export default new VueRouter({
  routes: [
    {
      path: "/",
      redirect: "/index",
    },
    {
      path: "/index",
      name: "Index",
      component: () => import("../views/IndexView.vue"),
    },
    {
      path: "/mingHang",
      name: "MingHang",
      component: () => import("../views/MingHang.vue"),
    },
    {
      path: "/weChat",
      name: "weChat",
      component: () => import("../views/weChat.vue"),
    },
    {
      path: "/LoginView",
      name: "LoginView",
      component: () => import("../views/LoginView.vue"),
    },
    {
      path: "/ChongFuPage",
      name: "ChongFuPage",
      component: () => import("../views/ChongFuPage.vue"),
    },
  ],
});
